package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_FbaInboundApiLog", catalog="Id")
public class TccFbaInboundApiLog extends BaseEntity<TccFbaInboundApiLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="varchar")
	private String type;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="varchar")
	private String pid;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="OperParam", nameJava="operParam", typeDataBase="text")
	private String operParam;
	@YsField(nameDataBase="JsonResult", nameJava="jsonResult", typeDataBase="text")
	private String jsonResult;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccFbaInboundApiLog setId(Long id) {
		this.id = id;
		return this;
	}
	public String getType() {
		return type;
	}
	public TccFbaInboundApiLog setType(String type) {
		this.type = type;
		return this;
	}
	public String getPid() {
		return pid;
	}
	public TccFbaInboundApiLog setPid(String pid) {
		this.pid = pid;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccFbaInboundApiLog setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getOperParam() {
		return operParam;
	}
	public TccFbaInboundApiLog setOperParam(String operParam) {
		this.operParam = operParam;
		return this;
	}
	public String getJsonResult() {
		return jsonResult;
	}
	public TccFbaInboundApiLog setJsonResult(String jsonResult) {
		this.jsonResult = jsonResult;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccFbaInboundApiLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccFbaInboundApiLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccFbaInboundApiLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccFbaInboundApiLog tccFbaInboundApiLog(
		String type,
		String pid,
		String bid,
		String operParam,
		String jsonResult,
		Integer status
			) {
		TccFbaInboundApiLog entity = new TccFbaInboundApiLog();
		entity.setType(type);
		entity.setPid(pid);
		entity.setBid(bid);
		entity.setOperParam(operParam);
		entity.setJsonResult(jsonResult);
		entity.setStatus(status);
		return entity;
	}
}